PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Control Manager >

Programming With the Mac OS 8.5 Control Manager


GetControlViewSize

Obtains the size of the content to which a control's size is proportioned.

pascal SInt32 GetControlViewSize (
                     ControlHandle theControl);
theControl
A value of type ControlHandle . Pass a handle to the control whose view size you wish to obtain.
function result
A signed 32-bit integer. The GetControlViewSize function returns a value equal to the current size of the content being displayed, expressed in terms of the same units of measurement as are used for the minimum, maximum, and current settings of the control.

DISCUSSION

Your application should call the GetControlViewSize function to obtain the current view size of a control. This value is used by the function SetControlViewSize to support proportional scroll boxes.


VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)